/*
 * @Author       : NaN 353362604@qq.com
 * @Date         : 2023-04-04 17:41:15
 * @LastEditTime : 2023-04-04 17:51:20
 * @LastEditors  : NaN 353362604@qq.com
 * @FilePath     : \AdminStration\src\Common\Modal\ThrModalList\MeterageAttachment.jsx
 * @Description  :
 */

import { commonTableList } from '../config'

export const PlanStatAttachment = async ({ data }) => {
    let dataList = {
        url: 'PlanStatAttachment',
        uuid: data.uuid,
        type: '添加附件',
        width: 600,
        classification: 'FormModal',
        hideInSearch: true,
        pageSize: 10,
        params: {},
        added: 'posPlanStatAttachment',
        additional: { planStatUuid: data.uuid },
        columns: [
            { ...commonTableList.tableName, rules: true, className: 'RemarkForm', width: 300 },
            { ...commonTableList.sortId, rules: true, className: 'RemarkForm', width: 300 },
            {
                dataIndex: 'attachmentUuid',
                title: '文件附件',
                valueType: 'upload',
                valueFile: [1, 2, 3, 4, 5],
                fileUrl: 'fileUrl',
                rules: true,
                hideInTable: true,
            },
            {
                dataIndex: 'fileUrl',
                title: '文件附件',
                valueType: 'hidden',
                hideInSearch: true,
                hideInTable: true,
                hideInAdded: true,
                hideInModify: true,
                width: 400,
            },
        ],
    }
    return dataList
}
